using System.Reflection;

namespace IssueIT.Core.Configuration.Settings
{
	public interface ISettingsNamingConvention
	{
		string GetName(PropertyInfo property);
	}

	public class DefaultSettingsNamingConvention : ISettingsNamingConvention
	{
		public string GetName(PropertyInfo property)
		{
			return string.Format("{0}.{1}", property.DeclaringType.Name, property.Name);
		}
	}
}